<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Blog extends Model
{
    // 帖子
    protected $table = "blog";
    public $timestamps = false;
    protected $guarded = ['id'];

    public function craftsman()
    {
        return $this->belongsTo('App\Craftsman');
    }

    public function zone()
    {
        return $this->belongsTo('App\Zone');
    }
}
